import { createRouter, createWebHistory } from 'vue-router'
import HotelView from '@/views/HotelView.vue'
import UserView from '@/views/UserView.vue'
import TestView from '@/views/TestView.vue'
import LoginView from '@/views/LoginView.vue'
import OrderView from '@/views/OrderView.vue'
import RoomView from '@/views/RoomView.vue'
import HotelSearchView from '@/views/HotelSearchView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HotelSearchView
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView,
    },
    {
      path: '/user',
      name: 'dashboard',
      component: UserView,
    },
    {
      path: '/test',
      name: 'test',
      component: TestView,
    },
    {
      path: '/order',
      name: 'order',
      component: OrderView,
    },
    {
      path: '/room',
      name: 'room',
      component: RoomView,
    },
  ]
})

export default router
